<?php

/**
 * MockRaiseUIControl
 * mock up of a RaiseUIControl
 *
 * @author Sam-Mauris Yong / hellclanner at live dot com
 * @license http://www.opensource.org/licenses/bsd-license New BSD License
 * @package Raise.UnitTest.Mocks
 */
class MockRaiseUIControl extends RaiseUIControl {

    private $link;

    private $text;

    public function  __construct($text, $link) {
        $this->link = $link;
        $this->text = $text;
    }


    public function output() {
        $tag = new RaiseHtmlTag('a', $this->text, array('href' => $this->link));
        return $tag->html();
    }

}
